/* 全局样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8f9fc;
    color: #5a5c69;
}

/* 顶部导航栏 */
.navbar-brand {
    font-weight: 700;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.25rem 0.75rem;
}

.sidebar .nav-link:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #3498db;
}

/* 主内容区 */
main {
    margin-top: 56px;
}

/* 卡片样式 */
.card {
    border-radius: 0.35rem;
    border: 0;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* 统计卡片 */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* 表格样式 */
.table {
    background-color: #fff;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fc;
}

/* 按钮样式 */
.btn-user {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-user:hover {
    color: #fff;
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* 表单样式 */
.form-control {
    border-color: #d1d3e2;
    border-radius: 0.35rem;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* 图片上传区域 */
.image-upload {
    border: 2px dashed #d1d3e2;
    border-radius: 0.35rem;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload:hover {
    border-color: #bac8f3;
}

.image-upload i {
    font-size: 2rem;
    color: #d1d3e2;
    margin-bottom: 0.5rem;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 1rem;
    border-radius: 0.35rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }

    main {
        margin-top: 0;
    }
}